package com.xy.hms.service;


import com.xy.hms.model.Room;

import java.util.List;

/**
 * @author xiaye
 * @create 2020-03-01-12:55
 */
public interface RoomServiceI {

    public static  final String ADD_SUCCESS = "添加成功";
    public static  final String UPDATE_SUCCESS = "修改成功";
    public static  final String DELETE_SUCCESS = "删除成功";

    //查询所有房间
    public List<Room> selectAllRooms();

    //根据id查询房间
    public Room selectRoomByid(Integer rid);

    //保存room
    public String insertRoom(Room room) throws Exception;

    String updateRoom(Room room) throws Exception;

    String deleteRoom(Integer rid) throws Exception;


}
